#拉取td
DIR=$( dirname "$(readlink -f  ${BASH_SOURCE[0]})" )
PARENTPATH=$(dirname ${DIR})
sh ${PARENTPATH}/valid_docker_images.sh tdengine
if [ $? != "2" ]; then
   sudo docker pull tdengine/tdengine:4.0.1.4
fi
if [ ! -d "/opt/soft/docker/td" ];then
sudo mkdir -p /opt/soft/docker/td
fi
sudo docker run -d --name tdengine --restart=always -h tdengine -p 6042:6041 -p 6030-6035:6030-6035 -p 6030-6035:6030-6035/udp -v /opt/soft/docker/tdengine/logs:/var/log/taos -v /opt/soft/docker/tdengine/data:/var/lib/taos tdengine/tdengine:3.0.1.4
